﻿using PropertyChanged;
using System;
using System.Windows;

namespace AllInOne
{
    [AddINotifyPropertyChangedInterface]
    public class PageVM
    {
        /// <summary>
        /// 页索引
        /// </summary>
        //[Newtonsoft.Json.JsonIgnore()]
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页大小
        /// </summary>
        //[Newtonsoft.Json.JsonIgnore()]
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }// = DateTime.Today;
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }// = DateTime.Today.AddDays(1).AddSeconds(-1);


        /// <summary>
        /// 总页数
        /// </summary>
        [Newtonsoft.Json.JsonIgnore()]
        public int PageCount { get; set; }

        /// <summary>
        /// 当前选中行
        /// </summary>
        [Newtonsoft.Json.JsonIgnore()]
        public int DataSelectIndex { get; set; }

        /// <summary>
        /// loading图标显示
        /// </summary>
        [Newtonsoft.Json.JsonIgnore()]
        public Visibility Loading { get; set; }
    }
}
